package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_badge_change", autoSave = true)
public class LogBadgeChange {

    @FieldTypeAnnotation
    private long userId;
    @FieldTypeAnnotation
    private String oldBadge;
    @FieldTypeAnnotation
    private String newBadge;
    @FieldTypeAnnotation
    private Date time;

    public LogBadgeChange(long userId, String oldBadge, String newBadge, Date time) {
        this.userId = userId;
        this.oldBadge = oldBadge;
        this.newBadge = newBadge;
        this.time = time;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getOldBadge() {
        return oldBadge;
    }

    public void setOldBadge(String oldBadge) {
        this.oldBadge = oldBadge;
    }

    public String getNewBadge() {
        return newBadge;
    }

    public void setNewBadge(String newBadge) {
        this.newBadge = newBadge;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}
